package net.tv90.bfmccore.event;

import lombok.Getter;
import net.tv90.bfmccore.game.EnumGameType;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import java.util.Set;

public class GameLoseEvent extends Event {
    private static final HandlerList Handlers = new HandlerList();

    public GameLoseEvent(Set<Player> playerSet, EnumGameType gameType) {
        this.playerSet = playerSet;
        this.gameType = gameType;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

    private final @Getter Set<Player> playerSet;

    private final @Getter EnumGameType gameType;
}
